#ifndef __trans_h__
#define __trans_h__ 1
#include "cJSON.h"
cJSON* http_post(char* url, char* data);
void http_url(char* sch, char* host, uint16_t port, char* path, char* out);
int http_download_file(char* url, char* out_file);
int http_download_get_url(char* url, char* data, char* down_url, char* version);

//udp
cJSON* udp_post(struct sockaddr_in *addr, char* data, int len);

#endif
